#include "d3dbase.h"
#include "d3dtexture.h"

namespace D3DTexture
{
	LPDIRECT3DTEXTURE9 CreateTextureFromPtr(void *texData, int width, int height, D3DFORMAT fmt, bool genmips) {
		//copy paste here...
		return 0;
	}

	LPDIRECT3DTEXTURE9 CreateRenderTarget(int width, int height, D3DFORMAT format) {
		LPDIRECT3DTEXTURE9 tex;
		if (!FAILED(D3DBase::GetDevice()->CreateTexture(
			width, height, 1, D3DUSAGE_RENDERTARGET, format, D3DPOOL_DEFAULT, &tex, 0)))
			return tex;
		else
			return 0;
	}
}